<template>
	<view>
		<!-- <web-view :src="url"></web-view> -->
		<ss-preview :fileUrl="fileUrl" :fileType="fileType" :imageList="imageList"></ss-preview>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				// url: 'https://www.youhuajianzhu.cn/gis/123.pdf',
				fileUrl: '',
				fileType: '2',
				imageList: [],
			}
		},
		onLoad(option) {
			// console.log(event)
			// this.url = event.url
			console.log(option)
			this.fileUrl = option.url
			uni.setNavigationBarTitle({
				title: option.title
			})
			// let options = JSON.parse(decodeURIComponent(option.url))
			// this.fileType = options.type;
			// if (options.type === '1') return this.imageList = options.src
			// this.fileUrl = options.src;
		},
		methods: {

		}
	}
</script>

<style>

</style>